package cn.yitun.chat.yitunservercommonlib.converter.dto2po.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactAddVerifyAnswerDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactAddVerifyAnswerInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactAddVerifyAnswerDto2PoConverter {

    ContactAddVerifyAnswerDto2PoConverter INSTANCE = Mappers.getMapper(ContactAddVerifyAnswerDto2PoConverter.class);

    ContactAddVerifyAnswerDto do2dto(ContactAddVerifyAnswerInfo info);

    List<ContactAddVerifyAnswerDto> do2dto(List<ContactAddVerifyAnswerInfo> doList);

    @InheritInverseConfiguration
    ContactAddVerifyAnswerInfo dto2do(ContactAddVerifyAnswerDto dto);
    @InheritInverseConfiguration
    List<ContactAddVerifyAnswerInfo> dto2do(List<ContactAddVerifyAnswerDto> dtoList);

}
